<!doctype html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>这是学生表的更新</title>
</head>

<body>
<form th:action="@{/student/stushow}" method="post">


    <!--
    user.uid,user.username
    username=value
    uid=value
    -->

    <input type="hidden" name="id" th:value="${student.stuId}" />
    <table id="userTab" style="border-collapse: collapse">
        <tr>
            <th>姓名：</th>
            <td>
                <input name="stuName" th:value="${student.stuName}" />
            </td>
        </tr>
        <tr>
            <th>密码：</th>
            <td>
                <input name="stuAge" th:value="${student.stuAge}" />
            </td>
        </tr>
        <tr>
            <th>性别：</th>
            <td>
                <input name="stuSex" th:value="${student.stuSex}" />
            </td>
        </tr>
        <tr>
            <th>生日：</th>
            <td>
                <input type="date" name="stuBirthday" th:value="${#dates.format(student.stuBirthday, 'yyyy-MM-dd')}"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="Update" />
            </td>
        </tr>
    </table>
    <p>
        <label>性别：</label>
        <label>
            <input type="radio" th:field="${student.stuSex}"
                   name="stuSex" th:value="男" />男
        </label>
        <label>
            <input type="radio" th:field="${student.stuSex}"
                   name="stuSex" th:value="女" />女
        </label>
    </p>
</form>
</body>
</html>